package com.zretc.support.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description  
 * @Author  jiaminxxi
 * @Date 2020-07-28 11:47:48 
 */

@Entity
@Table ( name ="topicmult" , schema = "")
public class Topicmult  implements Serializable {

	private static final long serialVersionUID =  1361700297886532000L;

	/**
	 * 选择题编号
	 */
	@Id
   	@Column(name = "chooseId" )
	private String chooseId;

	/**
	 * 选择题题目
	 */
   	@Column(name = "chooseName" )
	private String chooseName;

	/**
	 * 选项A
	 */
   	@Column(name = "chooseA" )
	private String chooseA;

	/**
	 * 选项B
	 */
   	@Column(name = "chooseB" )
	private String chooseB;

	/**
	 * 选项C
	 */
   	@Column(name = "chooseC" )
	private String chooseC;

	/**
	 * 选项D
	 */
   	@Column(name = "chooseD" )
	private String chooseD;

	/**
	 * 选择答案
	 */
   	@Column(name = "chooseRight" )
	private String chooseRight;

	/**
	 * 选择得分
	 */
   	@Column(name = "chooseScore" )
	private double chooseScore;

	/**
	 * 选择难度
	 */
   	@Column(name = "chooseLevel" )
	private Integer chooseLevel;

	/**
	 * 选择类型
	 */
   	@Column(name = "chooseType" )
	private Integer chooseType;

	/**
	 * 解析
	 */
   	@Column(name = "analysis" )
	private String analysis;

	/**
	 * 课程编号
	 */
	@ManyToOne
	@JoinColumn(name = "courseId")
   	private Course course;

	//学生此题答案（学生查看自己的答题详情需要）
	@Transient
	private String answerContent;

	//学生此题得分（学生查看自己的答题详情需要）
	@Transient
	private Double score;

	public Topicmult() {
	}

	public Topicmult(String chooseName, String chooseA, String chooseB, String chooseC, String chooseD, String chooseRight, double chooseScore, Integer chooseLevel, Integer chooseType, String analysis, Course course) {
		this.chooseName = chooseName;
		this.chooseA = chooseA;
		this.chooseB = chooseB;
		this.chooseC = chooseC;
		this.chooseD = chooseD;
		this.chooseRight = chooseRight;
		this.chooseScore = chooseScore;
		this.chooseLevel = chooseLevel;
		this.chooseType = chooseType;
		this.analysis = analysis;
		this.course = course;
	}

	public String getAnswerContent() {
		return answerContent;
	}

	public void setAnswerContent(String answerContent) {
		this.answerContent = answerContent;
	}

	public Double getScore() {
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public String getChooseId() {
		return this.chooseId;
	}

	public void setChooseId(String chooseId) {
		this.chooseId = chooseId;
	}

	public String getChooseName() {
		return this.chooseName;
	}

	public void setChooseName(String chooseName) {
		this.chooseName = chooseName;
	}

	public String getChooseA() {
		return this.chooseA;
	}

	public void setChooseA(String chooseA) {
		this.chooseA = chooseA;
	}

	public String getChooseB() {
		return this.chooseB;
	}

	public void setChooseB(String chooseB) {
		this.chooseB = chooseB;
	}

	public String getChooseC() {
		return this.chooseC;
	}

	public void setChooseC(String chooseC) {
		this.chooseC = chooseC;
	}

	public String getChooseD() {
		return this.chooseD;
	}

	public void setChooseD(String chooseD) {
		this.chooseD = chooseD;
	}

	public String getChooseRight() {
		return this.chooseRight;
	}

	public void setChooseRight(String chooseRight) {
		this.chooseRight = chooseRight;
	}

	public double getChooseScore() {
		return this.chooseScore;
	}

	public void setChooseScore(double chooseScore) {
		this.chooseScore = chooseScore;
	}

	public Integer getChooseLevel() {
		return this.chooseLevel;
	}

	public void setChooseLevel(Integer chooseLevel) {
		this.chooseLevel = chooseLevel;
	}

	public Integer getChooseType() {
		return this.chooseType;
	}

	public void setChooseType(Integer chooseType) {
		this.chooseType = chooseType;
	}

	public String getAnalysis() {
		return this.analysis;
	}

	public void setAnalysis(String analysis) {
		this.analysis = analysis;
	}



	@Override
	public String toString() {
		return "{" +
			"chooseId='" + chooseId + '\'' +
			"chooseName='" + chooseName + '\'' +
			"chooseA='" + chooseA + '\'' +
			"chooseB='" + chooseB + '\'' +
			"chooseC='" + chooseC + '\'' +
			"chooseD='" + chooseD + '\'' +
			"chooseRight='" + chooseRight + '\'' +
			"chooseScore='" + chooseScore + '\'' +
			"chooseLevel='" + chooseLevel + '\'' +
			"chooseType='" + chooseType + '\'' +
			"analysis='" + analysis + '\'' +
		'}';
	}

}
